package com.gla.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gla.entity.Order;
import com.sun.org.apache.xpath.internal.operations.Or;
import lombok.Data;

import java.util.Date;

@Data
public class OrderVO extends Order{
    private Integer page;

    private Integer size;

    public Order getOrder() {
        Order order = new Order();
        order.setId(this.getId());
        order.setUser_id(this.getUser_id());
        order.setReceive_address(this.getReceive_address());
        order.setCreate_time(this.getCreate_time());
        order.setRemarks(this.getRemarks());
        order.setState(this.getState());
        return order;
    }
}
